package com.langChain4j.api.vo;

import dev.langchain4j.data.message.ChatMessage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author linjun
 * @date 2025/8/21 11:21
 * @description
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("聊天实体vo")
public class AgentChatVo {

    @ApiModelProperty("sessionId")
    private String sessionId;

    @ApiModelProperty("url地址")
    private String baseUrl;

    @NotBlank(message = "消息内容不能为空")
    @ApiModelProperty("消息内容")
    private String message;

    @NotBlank(message = "选用模型不能为空")
    @ApiModelProperty("模型编码")
    private String modelName;

    @ApiModelProperty("温度范围[0,2]")
    private Double temperature;

    @ApiModelProperty("历史消息")
    private List<ChatMessage> historyMessage;
}
